//
//  ISBaseController.h
//  iSocket
//
//  Created by lhj on 1/23/16.
//  Copyright © 2016 boer. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface IMBaseController : UIViewController

@property (assign, nonatomic) BOOL isAppear;

- (BOOL)isVisible;
- (void)showHud;
- (void)showInfo:(NSString * _Nullable)info;
- (void)showStatus:(NSString * _Nullable)status;
- (void)showSuccess:(NSString * _Nullable)success;
- (void)showError:(NSString * _Nullable)errorMsg;
- (void)dismissHud;

/**
 *  在中间弹出的的，需要用户点击的提示框，
 *
 *  @param title        标题，如果是nil，那么是"温馨提示"
 *  @param message      提示信息
 *  @param cancelTitle  取消按钮标题，如果是nil，那么没有这个按钮
 *  @param confirmTitle 确认按钮标题，不能是nil
 *  @param confirm      确认的回调block，可以是nil
 */
- (void)showAlertViewWithTitle:(NSString *_Nullable)title message:(NSString *_Nullable)message cancelTitle:(NSString *_Nullable)cancelTitle confirmTitle:(NSString *_Nonnull)confirmTitle confirm:(void (^_Nullable)())confirm;
@end
